package com.soteind.system.session.core;

//import com.esmosoft.onefor.database.entities.AppModuleEntity;
import com.soteind.exceptions.ExceptionMessage;
import java.io.InputStream;
import java.util.List;
import java.util.Map;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.servlet.http.HttpSession;
import com.soteind.utils.TemporalResource;

public abstract class CoreSession {

    private EntityManagerFactory emf;
    private boolean logged;
    private Map<String, Object> attributesMap;
    private CoreUser oneForUser;
    private String persistanceUnitName;
    private Long tempResourceSufix;
    public static final String SESSION_PATH = "com.esmosoft.session.oneForSession";

    public CoreSession(String persistanceUnitName) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public boolean logIn(CoreAuthenticator authenticator, List<ExceptionMessage> errors) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void destroySession() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setAttribute(String name, Object object) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public Object getAttribute(String name) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void removeAttribute(String name) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public EntityManager createEntityManager() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public HttpSession getHttpSession() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public TemporalResource createTemporalResource(InputStream is, String contentType, String extension) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    protected abstract CoreUser createCoreUser(CoreAuthenticator ofa) throws DeniedAccessException;

    public static CoreSession getCurrentInstance() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public EntityManagerFactory getEmf() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public boolean isLogged() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public CoreUser getCoreUser() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public String getPersistanceUnitName() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }
}

